package demo.proxy.sta;

import entity.Student;

/**
 * 注册服务代理类，实现注册成功记录日志
 *
 * @author dingwen
 * 2021.05.25 11:16
 */
public class RegisterServiceProxy implements RegisterService {
    RegisterServiceImpl registerService;

    public RegisterServiceProxy(RegisterServiceImpl registerService) {
        this.registerService = registerService;
    }

    @Override
    public void register(Student student) {
        registerService.register(student);
        System.out.println("注册成功记录日志");
    }
}
